home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Examples / Button / Other / ButtonPart.r
Encoding:
Text File  |  1994-04-21  |  2.0 KB  |  112 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ButtonPart.r
  3.  
  4.     Contains:    NMAP resource for ButtonPart
  5.  
  6.     Written by:    Henri Lamiraux
  7.  
  8.     Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9. */
  10.  
  11. #define SystemSevenOrBetter 1            // we want the extended types
  12. #define    SystemSevenOrLater    1            // Types.r uses this variable
  13.  
  14. #ifndef __STDTYPES_R__
  15.     #include "StdTypes.r"
  16. #endif __STDTYPES_R__
  17.  
  18. #ifndef _STDDEFS_
  19.     #include "StdDefs.h"
  20. #endif _STDDEFS_
  21.  
  22. #ifndef _BUTTONDEF_
  23.     #include "ButtonDef.h"
  24. #endif
  25.  
  26. //-------------------------------------------------------------------------------------
  27. // NMAP Resources
  28. //-------------------------------------------------------------------------------------
  29.  
  30. resource kNameMappings (FW_kKindCategoryMapId) {
  31.     kXMPKind,
  32.     {    /* array Types: 1 elements */
  33.         /* [1] */
  34.         kSampleButtonKind,
  35.         kXMPIsAnISOStringList
  36.         {
  37.             {    /* array ClassIDs: 1 elements */
  38.                 /* [1] */
  39.                 kXMPCategoryControl
  40.             }
  41.         }
  42.     }
  43. };
  44.  
  45. resource kNameMappings (FW_kEditorKindMapId) {
  46.     kXMPEditorKinds,
  47.     {    /* array Types: 1 elements */
  48.         /* [1] */
  49.         kCButtonPartID,
  50.         kXMPIsAnISOStringList
  51.         {
  52.             {    /* array ClassIDs: 1 elements */
  53.                 /* [1] */
  54.                 kSampleButtonKind
  55.             }
  56.         }
  57.     }
  58. };
  59.  
  60. resource kNameMappings (FW_kEditorUserStringMapId) {
  61.     kXMPEditorUserString,
  62.     {    /* array Types: 1 elements */
  63.         /* [1] */
  64.         kCButtonPartID,
  65.         kXMPIsINTLText
  66.         {
  67.             kXMPRomanScript,
  68.             kXMPEnglishLang,
  69.             kSampleButtonEditorUserString
  70.         }
  71.     }
  72. };
  73.  
  74. resource kNameMappings (FW_kKindUserStringMapId) {
  75.     kXMPKindUserString,
  76.     {    /* array Types: 1 elements */
  77.         /* [1] */
  78.         kSampleButtonKind,
  79.         kXMPIsINTLText
  80.         {
  81.             kXMPRomanScript,
  82.             kXMPEnglishLang,
  83.             kSampleButtonKindUserString
  84.         }
  85.     }
  86. };
  87.  
  88. resource kNameMappings (FW_kCategoryUserStringMapId) {
  89.     kXMPCategoryUserString,
  90.     {    /* array Types: 1 elements */
  91.         /* [1] */
  92.         kXMPCategoryControl,
  93.         kXMPIsINTLText
  94.         {
  95.             kXMPRomanScript,
  96.             kXMPEnglishLang,
  97.             kSampleButtonCategoryUserString
  98.         }
  99.     }
  100. };
  101.  
  102. resource kNameMappings (FW_kOldMacOSTypeMapId) {
  103.     kXMPKindOldMacOSType,
  104.     {    /* array KeyList: 1 elements */
  105.         /* [1] */
  106.         kSampleButtonKind,
  107.         kXMPIsMacOSType {
  108.             kSampleButtonOSType
  109.         }
  110.     }
  111. };
  112.